package com.hertz.alarm.util;

import org.codehaus.jackson.JsonParser.Feature;
import org.codehaus.jackson.map.ObjectMapper;
import org.codehaus.jackson.map.SerializationConfig;
public class JsonMapperHelper {
	
	public final static ObjectMapper objectMapper;
	static {
		objectMapper = new ObjectMapper();
		objectMapper.getDeserializationConfig().set(org.codehaus.jackson.map.DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES,false); 
		objectMapper.configure(Feature.ALLOW_UNQUOTED_FIELD_NAMES, true);  
		objectMapper.configure(Feature.ALLOW_UNQUOTED_CONTROL_CHARS, true);  
		objectMapper.configure(SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS, false);
	}
}
